package com.kl.service;

import com.kl.em.Result;
import com.baomidou.mybatisplus.extension.service.IService;
import com.kl.entity.Menu;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author author
 * @since 2021-10-29
 */
public interface IMenuService extends IService<Menu> {

    List<Map<String, Object>> findMenuJson(Long id);

    List<Map<String, Object>> getMenuZtree();

    Result addMenuInfo(Menu menu);

    Menu selectMenuById(Integer mid);

    Result updateMenu(Menu menu);

    Result deleteMenu(Integer id);

    List<Map<String, Object>> getMenuZtreeChecked(Integer rid);

    List<String> selectPerms(Long id);
}
